<?php
// using
use \hpnWse\nWp\stBase as stWpBase;


?>

<nav class="mi_NavBar">
	<div class="mi_CenPut">
		<a href="<?php echo site_url() ?>" class="mi_ImgWrap"><img src="<?php echo stWpBase::cToImgUrl('Logo.png') ?>" /></a>
		<i class="mi_UpdBtn fa fa-refresh" data-wse_cmd="upd" title="刷新"></i>

		<span class="cnWse_PutSrc" data-wse_bld_wgt="tSrchBox"
			data-wse_btn_tit="true" data-wse_plchd="搜索您感兴趣的问题"
			data-wse_evt_cmd="i_Chg=search"
		>
		</span>

		<?php if (\hpnApp\fIsMember()) : ?>
		<div class="mi_UserPofl">
			<a href="#" class="mi_Btn mi_TextOvfl_Elps"><?php echo $_SESSION['UserProfile']['Username'] ?></a>
			<span data-wse_cmd="logout" data-wse_ajax_anmt="true" class="mi_Btn">退出</span>
		</div>
		<?php else : ?>
		<div class="mi_LoginBtns">
			<a href="<?php echo \hpnWse\fApdUrlQry(stWpBase::cToPageUrl('login'), 'tab=login') ?>" class="mi_Btn">登录</a>
			<a href="<?php echo \hpnWse\fApdUrlQry(stWpBase::cToPageUrl('login'), 'tab=signup') ?>" class="mi_Btn">注册</a>
		</div>
		<?php endif ?>
	</div>
</nav>